package com.yunmai11.wyz.yunmaiyizhan.adapter;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.yunmai11.wyz.yunmaiyizhan.R;

import java.util.List;

/**
 * Created by ewang1986 on 2017/1/15.
 */
public class XRecyclerViewAdapter extends RecyclerView.Adapter<MyViewHolder>{

    private Context context;
    private List<String> datas;

    public XRecyclerViewAdapter(Context context, List<String> datas) {
        this.context = context;
        this.datas = datas;
    }

    @Override
    public MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        return LayoutInflater.from(context).inflate(R.layout.recyclerview_item, null);
    }

    @Override
    public int getItemCount() {
        return 0;
    }

    @Override
    public void onBindViewHolder(MyViewHolder holder, int position) {

    }

    class MyViewHolder extends RecyclerView.ViewHolder {
        public MyViewHolder(View itemView) {
            super(itemView);

        }
    }
}
